package com.whitlock.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.whitlock.backend.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author Whitlock
 * @date 2020/7/9   10:41 上午
 */
@Data
@TableName("tk_user")
public class TKUser extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id", name = "id",hidden = true)
    private String id;

    @ApiModelProperty(value = "姓名", name = "name")
    private String name;

    @ApiModelProperty(value = "组织机构", name = "orgName")
    private String orgName;

    @ApiModelProperty(value = "组织机构id", name = "orgId")
    private String orgId;

    @ApiModelProperty(value = "登录名", name = "userName")
    private String userName;

    @ApiModelProperty(value = "密码", name = "password")
    private String userPassword;

    @ApiModelProperty(value = "电话", name = "phone")
    private String phone;

    @ApiModelProperty(value = "性别（0 女 1 男）", name = "sex")
    private int sex;

    @ApiModelProperty(value = "id", name = "id",hidden = true)
    @TableField(exist = false)
    private String token;

    @ApiModelProperty(value = "用户角色列表", name = "roleList")
    @TableField(exist = false)
    private List<TKRole> roleList;

    @ApiModelProperty(value = "邮箱", name = "email")
    private String email;

}
